// 数组筛选过滤器
define('arrChoosenFilter', ['angular'], function (angular) {
    var module = angular.module('filters');
    module.filter('arrChoosenFilter', [function() {
	    return function(arr,obj) {
	    	var arrList=[];
	    	var flag;
	    	for(var i in arr) {
	    		flag=true;
	    		for (var j in obj) {	
					if(arr[i][j]!=obj[j]){
						flag=false;
						break;
					}
	    		}
	    		if(flag===true){
					arrList.push(arr[i]);
	    		}
			}
	    	return arrList;
	    };
  	}]);
});
